 <div class="grid-sidebar">
     <div class="zTreeDemoBackground ">
         <div style="border-bottom: 1px solid #aed0ea;float:none;display:block" class="da-button">
             <a class="linkbutton toolbar-btn-plain" id="editcategory"><span>编辑<span
                         class="ficon icon-edit">&nbsp;</span></span></a>
         </div>
         <div class="treeDemo">
             <ul id="treeDemo" class="ztree"></ul>
         </div>
     </div>
     <div id="openClose" class="open" title="展开与关闭">
         <span class="fa fa-angle-left"></span>
     </div>
 </div>
 {!! css('index', 'category', 'common') !!}
 {!! js('index', 'category', 'common') !!}
 <script>
     $(document).ready(function() {
         var setting = {
             data: {
                 key: {
                     title: "t"
                 },
                 simpleData: {
                     enable: true
                 }
             },
             check: {
                 enable: false,
                 nocheckInherit: true
             },
             callback: {

                 onClick: onClick
             }
         };

         $("#treeDemo").ztreeinit({!! json_encode($categroy) !!}, setting);
     })
 </script>
